package com.github.crush0.myblog.dao;

import com.github.crush0.myblog.entity.ArticleInfo;
import com.github.crush0.myblog.entity.ArticleInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface ArticleInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ArticleInfo record);

    int insertSelective(ArticleInfo record);

    List<ArticleInfo> selectByExample(ArticleInfoExample example);

    ArticleInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleInfo record);

    @Select("select * from tbl_article_info order by modified_by DESC")
    List<ArticleInfo> selectAll();

    int updateByPrimaryKey(ArticleInfo record);
}